import request from '@/utils/request'

// 查询会员规则列表
export function listStockmemberrule(query) {
  return request({
    url: '/stock/stockmemberrule/list',
    method: 'get',
    params: query
  })
}

// 查询会员规则详细
export function getStockmemberrule(id) {
  return request({
    url: '/stock/stockmemberrule/' + id,
    method: 'get'
  })
}

// 新增会员规则
export function addStockmemberrule(data) {
  return request({
    url: '/stock/stockmemberrule',
    method: 'post',
    data: data
  })
}

// 修改会员规则
export function updateStockmemberrule(data) {
  return request({
    url: '/stock/stockmemberrule',
    method: 'put',
    data: data
  })
}

// 删除会员规则
export function delStockmemberrule(id) {
  return request({
    url: '/stock/stockmemberrule/' + id,
    method: 'delete'
  })
}
